const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('../views/Home'),
        redriect: '/home',
        children:[
            {
                path: 'hot',
                name: 'Hot',
                component: () => import(/* webpackChunkName: "hot" */ '../views/Hot'),
                meta:{
                    title:'今日爆款'
                }
            },
            {
                path: 'cart',
                name:'Cart',
                component: () => import(/* webpackChunkName: "cart" */ '../views/Cart'),
                meta:{
                    title:'购物车'
                }
            },
            {
                path: 'mine',
                name:'Mine',
                component: () => import(/* webpackChunkName: "mine" */ '../views/Mine'),
                meta:{
                    title:'我的'
                }
            }
        ],
    },
    {
        path: '/login',
        name: 'login',
        component: ()=> import ('@/views/Login'),
        meta: {
            title: '系统登陆'
        }
    },
]


export default routes